<template>
           <div class="box">
                <header>
                     <i class="iconfont icon-weibiaoti-- fh" @click="back" ></i>
                     <span class="title">公告详情</span>
               </header>
               <h1 style="width:100%;height:1.88rem;margin-bottom:0.8rem;"></h1>
               <main v-html="xq">
                     
               </main>
               
           </div>
</template>

<script>
export default {
      data(){
          return{
              xq:"",
          }
      },

      methods:{
          back(){
              this.$router.go(-1)
          }
      },
      mounted(){
          this.$http.get('http://www.kbb123.com/api/my/comad')
               .then(res=>{
                   if(res.data.code=='200'){
                       this.xq = res.data.data
                   }
               })
      }
}
</script>

<style lang="less" scoped>
         .box{
             width:100%;
             height:100%;
             background:#fff;
             display:flex;
             flex-direction:column;
         }
         header{
               position:fixed;
               top:0;
               width:100%;
               height:1.88rem;
               display:flex;
               position:fixed;
               top:0;
               z-index:100;
               background: #fff;
         }
         .fh{
             width:2.1rem;
             line-height:1.88rem;
             text-align:center;
             z-index:100; 
             color:#333333;
             font-size:0.76rem;  
         }
         .title{
               font-size:0.76rem;
               line-height:1.88rem;
               text-align:center;
               color:#333333;
               letter-spacing:0.02rem;
               position: absolute;
               left:0;
               right:0;
               margin:0 auto;
         }
         main{
             width:90%;
             flex:1;
             background:#fff;
             position: relative;
             left:0;
             right:0;
             margin:0 auto;
            
         }
         p{
             font-size:0.48rem;
             color:#666666;
         }
</style>
